package selectionweb.web;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;

@Data
public class Student {
    @NotBlank
    @Size(min=2, message="Name must be at least 2 characters long")
    private String name;

    @NotNull
    @Size(min=10,max = 10,message="Student number must be 10 characters long")
    private String studentNumber;

    @NotBlank
    private String grade;

    @NotBlank
    private String major;

    @NotBlank
    private String college;
}
